﻿<%@ Page Language="C#" MasterPageFile="~/mtaobao.master" AutoEventWireup="true" CodeBehind="regist1.aspx.cs" Inherits="map.member.regist1" Title="注册新用户-步骤1" UICulture="auto" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <link href="../outstyle.css" rel="stylesheet" type="text/css" />
      <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>

    <script src="../js/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/jquery.jqtransform.js"></script>

    <link href="../css/jquery-ui-1.7.2.custom.css" rel="stylesheet" type="text/css" />
    <link href="../css/jqtransform.css" rel="stylesheet" type="text/css" />
    <link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
  
    <style type="text/css">
    

        .style1
        {
            width: 100%;
        }
        .*
        {
            margin: 0;
            padding: 0;
            font-size: small;
        }
        .style3
        {
            width: 140px;
            height: 51px;
            color: #CC0000;
        }
        .style4
        {
            height: 51px;
        }
        .style2
        {
            width: 140px;
        }
        .style5
        {
            color: #CC0000;
        }
        .PasswordStrengthText
        {
        	color:Red;
        }
          .watermark
        {
        	  
        	  color:#676767;
        }
        .NoJqueryPlugIn
        {}
        .validateErrorMsg
        {
            background:url(/img/errorMsg.ico) no-repeat ;
            padding-left:20px;
            border:solid 1px red;
            font-size:smaller;
            padding:2px 2px 2px 20px;
            color:Red;
        }
        </style>

    <script src="../js/dropdowncontent.js" type="text/javascript"></script>

     <script type="text/javascript">
         $(function() {
             //find all form with class jqtransform and apply the plugin
             $("form#aspnetForm").jqTransform({ imgPath: '../css/img/' });
         });
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">

<asp:Literal ID="Literal_map" runat="server"></asp:Literal>

 <div id="dialog" title="成功啦!现在就去登录!">

</div>
<table class="style1" style="border: 1px solid #C0C0C0">
            <tr >
                <td class="style3"  
                    style="background-position: left top; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0; background-image: url('../img/altbg1.gif'); background-repeat: repeat-x;" >
                    <b>填写注册信息</b><br />
                </td>
                <td class="style4" style="background-position: left top; border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0; background-image: url('../img/altbg1.gif'); background-repeat: repeat-x;">
                &nbsp;
                </td>
            </tr>
         
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    电子邮箱:</td>
               
               
               
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                 
                   
                    <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox> 
                    <span class="style5">&nbsp;*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox1"></asp:RequiredFieldValidator>
                     <asp:Label ID="showMailMessage" runat="server" class="style5"></asp:Label>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ControlToValidate="TextBox1" ErrorMessage="请确定邮箱地址输入正确!" 
            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                    
                   
                    </td>
                
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    用户名:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
                     <asp:Label ID="showUserError" runat="server" CssClass="style5"></asp:Label>
                    <span class="style5">&nbsp;*</span>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox2">
                    </asp:RequiredFieldValidator>
                     
                    </td>
                
            </tr>
            <tr >
                
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    密码:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox3" runat="server" TextMode="Password"></asp:TextBox>
                     <ajaxToolkit:PasswordStrength ID="psInput" runat="server" 
                        TargetControlID="TextBox3" DisplayPosition="BelowRight" 
                        TextCssClass="PasswordStrengthText" HelpHandlePosition="BelowRight"  
                        HelpStatusLabelID="Label2" MinimumNumericCharacters="0"  
                        MinimumSymbolCharacters="0" PreferredPasswordLength="6"    
                        RequiresUpperAndLowerCaseCharacters="false"  StrengthIndicatorType="Text"    TextStrengthDescriptions="很差;差;一般;好;很好" 
                        CalculationWeightings="40;20;20;20"></ajaxToolkit:PasswordStrength>
                    
                     
                    <span class="style5">&nbsp;*<asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox3"></asp:RequiredFieldValidator>
                     <asp:Label ID="Label2" runat="server" Text=""></asp:Label>
                     <asp:regularexpressionvalidator   id="RegularMMValidator"   runat="server" controltovalidate="TextBox3"    validationexpression="^\w{5,17}$"  display="dynamic">  
                                  密码必需为6位以上  </asp:regularexpressionvalidator>
                    </span></td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    确认密码:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox4" runat="server" TextMode="Password"></asp:TextBox>  <ajaxToolkit:PasswordStrength ID="PasswordStrength1" runat="server" 
                        TargetControlID="TextBox4" DisplayPosition="BelowRight" 
                        TextCssClass="PasswordStrengthText" HelpHandlePosition="BelowRight"  
                        HelpStatusLabelID="Label1" MinimumNumericCharacters="0"  
                        MinimumSymbolCharacters="0" PreferredPasswordLength="6"    
                        RequiresUpperAndLowerCaseCharacters="false"  StrengthIndicatorType="Text"    TextStrengthDescriptions="很差;差;一般;好;很好" 
                      CalculationWeightings="40;20;20;20"></ajaxToolkit:PasswordStrength><span class="style5">&nbsp;*</span>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="必须填写项目。" ControlToValidate="TextBox4"></asp:RequiredFieldValidator>
                           <asp:Label ID="Label1" runat="server" Text="" class="style5"></asp:Label>
                   <asp:CompareValidator
                         ID="CompareValidator1" runat="server" ErrorMessage="两次输入密码不一致。" ControlToCompare="TextBox3" ControlToValidate="TextBox4"></asp:CompareValidator>
                   
                        
                          
                          </td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    性别:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server"  
                        RepeatDirection="Horizontal">
                        <asp:ListItem Selected="True">男</asp:ListItem>
                        <asp:ListItem>女</asp:ListItem>
                    </asp:RadioButtonList>
                        </td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    我初中所在的学校:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox5" runat="server"></asp:TextBox>
                   <%-- <ajaxToolkit:TextBoxWatermarkExtender  ID="TextBoxWatermarkExtender1" runat="server" WatermarkText="初中校名是?" TargetControlID="TextBox5" WatermarkCssClass="watermark">
                    </ajaxToolkit:TextBoxWatermarkExtender>--%>
                    <table>
                    <tr>
                    <td><div ID="Label3" >毕业年份:</div></td><td> <asp:DropDownList ID="DropDownList1"
                        runat="server">
                        <asp:ListItem>1970</asp:ListItem>
                        <asp:ListItem>1971</asp:ListItem>
                        <asp:ListItem>1972</asp:ListItem>
                        <asp:ListItem>1973</asp:ListItem>
                        <asp:ListItem>1974</asp:ListItem>
                        <asp:ListItem>1975</asp:ListItem>
                        <asp:ListItem>1976</asp:ListItem>
                        <asp:ListItem>1977</asp:ListItem>
                        <asp:ListItem>1978</asp:ListItem>
                        <asp:ListItem>1979</asp:ListItem>
                        <asp:ListItem>1980</asp:ListItem>
                        <asp:ListItem>1981</asp:ListItem>
                        <asp:ListItem>1982</asp:ListItem>
                        <asp:ListItem>1983</asp:ListItem>
                        <asp:ListItem>1984</asp:ListItem>
                        <asp:ListItem>1985</asp:ListItem>
                        <asp:ListItem>1986</asp:ListItem>
                        <asp:ListItem>1987</asp:ListItem>
                        <asp:ListItem>1988</asp:ListItem>
                        <asp:ListItem>1989</asp:ListItem>
                        <asp:ListItem>1990</asp:ListItem>
                        <asp:ListItem>1991</asp:ListItem>
                        <asp:ListItem>1992</asp:ListItem>
                        <asp:ListItem>1993</asp:ListItem>
                        <asp:ListItem>1994</asp:ListItem>
                        <asp:ListItem>1995</asp:ListItem>
                        <asp:ListItem>1996</asp:ListItem>
                        <asp:ListItem>1997</asp:ListItem>
                        <asp:ListItem>1998</asp:ListItem>
                        <asp:ListItem>1999</asp:ListItem>
                        <asp:ListItem>2000</asp:ListItem>
                        <asp:ListItem>2001</asp:ListItem>
                        <asp:ListItem>2002</asp:ListItem>
                        <asp:ListItem>2003</asp:ListItem>
                        <asp:ListItem>2004</asp:ListItem>
                        <asp:ListItem>2005</asp:ListItem>
                        <asp:ListItem>2006</asp:ListItem>
                        <asp:ListItem>2007</asp:ListItem>
                        <asp:ListItem>2008</asp:ListItem>
                        <asp:ListItem>2009</asp:ListItem>
                    </asp:DropDownList></td></tr></table>
                   
                </td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    我高中所在的学校:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox6" runat="server"></asp:TextBox>
                     <%-- <ajaxToolkit:TextBoxWatermarkExtender  ID="TextBoxWatermarkExtender2" runat="server" WatermarkText="高中校名是?" TargetControlID="TextBox6" WatermarkCssClass="watermark">
                    </ajaxToolkit:TextBoxWatermarkExtender>--%>
                    <table>
                    <tr>
                    <td>
                    <asp:Label ID="Label4" runat="server" Text="毕业年份:"></asp:Label></td><td><asp:DropDownList ID="DropDownList2"
                        runat="server">
                        <asp:ListItem>1970</asp:ListItem>
                        <asp:ListItem>1971</asp:ListItem>
                        <asp:ListItem>1972</asp:ListItem>
                        <asp:ListItem>1973</asp:ListItem>
                        <asp:ListItem>1974</asp:ListItem>
                        <asp:ListItem>1975</asp:ListItem>
                        <asp:ListItem>1976</asp:ListItem>
                        <asp:ListItem>1977</asp:ListItem>
                        <asp:ListItem>1978</asp:ListItem>
                        <asp:ListItem>1979</asp:ListItem>
                        <asp:ListItem>1980</asp:ListItem>
                        <asp:ListItem>1981</asp:ListItem>
                        <asp:ListItem>1982</asp:ListItem>
                        <asp:ListItem>1983</asp:ListItem>
                        <asp:ListItem>1984</asp:ListItem>
                        <asp:ListItem>1985</asp:ListItem>
                        <asp:ListItem>1986</asp:ListItem>
                        <asp:ListItem>1987</asp:ListItem>
                        <asp:ListItem>1988</asp:ListItem>
                        <asp:ListItem>1989</asp:ListItem>
                        <asp:ListItem>1990</asp:ListItem>
                        <asp:ListItem>1991</asp:ListItem>
                        <asp:ListItem>1992</asp:ListItem>
                        <asp:ListItem>1993</asp:ListItem>
                        <asp:ListItem>1994</asp:ListItem>
                        <asp:ListItem>1995</asp:ListItem>
                        <asp:ListItem>1996</asp:ListItem>
                        <asp:ListItem>1997</asp:ListItem>
                        <asp:ListItem>1998</asp:ListItem>
                        <asp:ListItem>1999</asp:ListItem>
                        <asp:ListItem>2000</asp:ListItem>
                        <asp:ListItem>2001</asp:ListItem>
                        <asp:ListItem>2002</asp:ListItem>
                        <asp:ListItem>2003</asp:ListItem>
                        <asp:ListItem>2004</asp:ListItem>
                        <asp:ListItem>2005</asp:ListItem>
                        <asp:ListItem>2006</asp:ListItem>
                        <asp:ListItem>2007</asp:ListItem>
                        <asp:ListItem>2008</asp:ListItem>
                        <asp:ListItem>2009</asp:ListItem>
                    </asp:DropDownList></td></tr></table></td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    我大学所在的学校:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox7" runat="server" ontextchanged="TextBox7_TextChanged"></asp:TextBox>
                     <%-- <ajaxToolkit:TextBoxWatermarkExtender  ID="TextBoxWatermarkExtender3" runat="server" WatermarkText="大学名称是?" TargetControlID="TextBox7" WatermarkCssClass="watermark">
                    </ajaxToolkit:TextBoxWatermarkExtender>--%>
                    <table>
                    <tr>
                    <td>
                    <asp:Label ID="Label5" runat="server" Text="毕业年份:"></asp:Label>
                    </td>
                    <td><asp:DropDownList ID="DropDownList3"
                        runat="server">
                        <asp:ListItem>1970</asp:ListItem>
                        <asp:ListItem>1971</asp:ListItem>
                        <asp:ListItem>1972</asp:ListItem>
                        <asp:ListItem>1973</asp:ListItem>
                        <asp:ListItem>1974</asp:ListItem>
                        <asp:ListItem>1975</asp:ListItem>
                        <asp:ListItem>1976</asp:ListItem>
                        <asp:ListItem>1977</asp:ListItem>
                        <asp:ListItem>1978</asp:ListItem>
                        <asp:ListItem>1979</asp:ListItem>
                        <asp:ListItem>1980</asp:ListItem>
                        <asp:ListItem>1981</asp:ListItem>
                        <asp:ListItem>1982</asp:ListItem>
                        <asp:ListItem>1983</asp:ListItem>
                        <asp:ListItem>1984</asp:ListItem>
                        <asp:ListItem>1985</asp:ListItem>
                        <asp:ListItem>1986</asp:ListItem>
                        <asp:ListItem>1987</asp:ListItem>
                        <asp:ListItem>1988</asp:ListItem>
                        <asp:ListItem>1989</asp:ListItem>
                        <asp:ListItem>1990</asp:ListItem>
                        <asp:ListItem>1991</asp:ListItem>
                        <asp:ListItem>1992</asp:ListItem>
                        <asp:ListItem>1993</asp:ListItem>
                        <asp:ListItem>1994</asp:ListItem>
                        <asp:ListItem>1995</asp:ListItem>
                        <asp:ListItem>1996</asp:ListItem>
                        <asp:ListItem>1997</asp:ListItem>
                        <asp:ListItem>1998</asp:ListItem>
                        <asp:ListItem>1999</asp:ListItem>
                        <asp:ListItem>2000</asp:ListItem>
                        <asp:ListItem>2001</asp:ListItem>
                        <asp:ListItem>2002</asp:ListItem>
                        <asp:ListItem>2003</asp:ListItem>
                        <asp:ListItem>2004</asp:ListItem>
                        <asp:ListItem>2005</asp:ListItem>
                        <asp:ListItem>2006</asp:ListItem>
                        <asp:ListItem>2007</asp:ListItem>
                        <asp:ListItem>2008</asp:ListItem>
                        <asp:ListItem>2009</asp:ListItem>
                    </asp:DropDownList></td>
                    </tr>
                    </table></td>
            </tr>
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    我曾经的工作单位:</td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:TextBox ID="TextBox8" runat="server"></asp:TextBox></td>
                    
                   
            </tr>
                
            <tr >
                <td class="style2" style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0; vertical-align:top;">
                    我的位置:<br />
                   <asp:TextBox ID="mapLng" name="mapLng"  runat="server" style="display:none" CssClass="NoJqueryPlugIn"></asp:TextBox>
                    <br /><asp:TextBox ID="MapLat" name="MapLat" runat="server" style="display:none" CssClass="NoJqueryPlugIn"></asp:TextBox>
                    <br />
                    
                    </td>
                <td style="border-bottom-style: solid; border-bottom-width: 1px; border-bottom-color: #C0C0C0">
                    <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                        <ContentTemplate>
                           <table>
                           <tr>
                           <td><asp:Label ID="Label6" runat="server" Text="市县:"></asp:Label></td>
                           <td><asp:DropDownList ID="DropDownList4" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownList1_SelectedIndexChanged">
            </asp:DropDownList>
                           </td>
                           <td><asp:Label ID="Label7" runat="server" Text="地区:"/>
                           </td>
                           <td><asp:DropDownList ID="DropDownList5" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownList2_SelectedIndexChanged">
            </asp:DropDownList>
                           </td>
                            </tr><tr><td><asp:Label ID="Label8" runat="server" Text="区域:"/></td>
                           <td> <asp:DropDownList ID="DropDownList6" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownList3_SelectedIndexChanged">
            </asp:DropDownList></td>
           <td><asp:Label ID="Label9" runat="server" Text="地区:"/>
            </td>
            <td> <asp:DropDownList ID="DropDownList7" runat="server" AutoPostBack="True" 
                onselectedindexchanged="DropDownList4_SelectedIndexChanged">
            </asp:DropDownList></td>     <td><asp:Label ID="Label10" runat="server" Text="详细地址:"/>
            </td>
            <td><asp:TextBox ID="TextBox19" runat="server"></asp:TextBox></td><td> <a href="../manage/area5.aspx" target="_blank">点此标记新的小区信息</a></td>
                           </tr></table>
                            
         
              
             
      
            <br />
                        </ContentTemplate>
                    </asp:UpdatePanel>
            
            <br />

           

    <script type="text/javascript">
        var map;
        var geocoder = null;
        function showDianlog() {
            $("#dialog").dialog({
                bgiframe: true,
                resizable: false,
                height: 40,
                modal: true,
                overlay: {
                    backgroundColor: '#000',
                    opacity: 0.5
                },
                buttons: {
                    //                    '暂不注册': function() {
                    //                        $(this).dialog('close');
                    //                    },
                    '好，去登录。': function() {
                        window.location.href = "../member/login.aspx";
                    }
                }
                //                ,
                //                close: function() {
                //                    $(this).dialog('destroy');
                //                }

            });

        }
        function markpos2(zlong, zlat, desc) {
            map.clearOverlays();
            $("form#aspnetForm").jqTransform({ imgPath: '../css/img/' });
            document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_MapLat").value = String(zlat);
            document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_mapLng").value = String(zlong);
            var point1 = new GLatLng(zlat, zlong);
            var marker1 = new GMarker(point1);

            GEvent.addListener(marker1, "click", function() {
                marker1.openInfoWindowHtml("标注此位置");
            });
            map.addOverlay(marker1);
            map.setCenter(point1, 14);

        }
        function showAddress(address) {
            if (geocoder) {
                geocoder.getLatLng(
          address,
          function(point) {
              if (!point) {
                  alert("不能解析: " + address);
              } else {
                  map.setCenter(point, 13);
                  var marker = new GMarker(point);
                  map.addOverlay(marker);
                  marker.openInfoWindowHtml(address);
              }
          }
        );
            }
        }
        function markpos(zlong, zlat, desc) {
            if (GBrowserIsCompatible()) {
                var mapOptions = {
                    googleBarOptions: {
                        style: "new"
                    }
                }


                map = new GMap2(document.getElementById("map_canvas"), mapOptions);


                map.setMapType(G_NORMAL_MAP);
                map.addControl(new GMapTypeControl());
                map.addControl(new GLargeMapControl());
                map.enableContinuousZoom();
                map.addControl(new GOverviewMapControl());
                geocoder = new GClientGeocoder();

               // map.enableGoogleBar();



                var center = new GLatLng(zlat, zlong);
                map.setCenter(center, 14);



                GEvent.addListener(map, "click", function(overlay, latlng) {
                    if (latlng) {
                        var myHtml = "标注此位置";
                        //m.removeOverlay(marker);
                        map.clearOverlays();

                        map.openInfoWindow(latlng, myHtml);
                        var lat = latlng.lat();
                        var lon = latlng.lng();
                        //map.clearOverlays();
                        //                        var ss1 = document.getElementById("ctl00_ContentPlaceHolder1_Label5");
                        //                        var ss2 = document.getElementById("ctl00_ContentPlaceHolder1_Label3");
                        //                        document.getElementById("ctl00_ContentPlaceHolder1_Label5").value = lat;
                        //                        document.getElementById("ctl00_ContentPlaceHolder1_Label3").value = lon;
                        //                        $("#ctl00_ContentPlaceHolder1_MapLat").val(lat);
                        //                        $("#ctl00_ContentPlaceHolder1_mapLng").val(lon);
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_MapLat").value = String(lat);
                        document.getElementById("ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_mapLng").value = String(lon);
//                        $("#ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_MapLat").text(lat);
//                        $("#ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_mapLng").text(lon);
                        var point = new GLatLng(lat, lon);
                        var marker = new GMarker(point);
                        GEvent.addListener(marker, "click", function() {
                            marker.openInfoWindowHtml("标注此位置");
                        });
                        map.addOverlay(marker);
                    }
                });
                //                var point1 = new GLatLng(zlat, zlong);
                //                var marker1 = new GMarker(point1);
                //                GEvent.addListener(marker1, "click", function() {
                //                    marker1.openInfoWindowHtml("标注此位置");
                //                });
                //                map.addOverlay(marker1);
            }
        }
    </script> 
        <div style="width:530px;height:5px;"></div>
            <div id="map_canvas" style="width:530px; height:330px;
             border-color:Gray; border-style:solid; border-width:1px;"></div>       
                         
</td>
            </tr>
            <tr >
                <td class="style2">
                    验证信息,不分大小写</td>
                     <td class="td_e_1"  style=" vertical-align:middle;">
                                <table>
                                    <tr>
                                        <td>
                                            <input  type="text" id="CheckupCodeInput" style=" width:80px" value="" />
                                        </td>
                                        <td>
                                            <img src ="/controls/RandomCheckupCoding.aspx?count=4&key=forregist" id="checkupImg"/>
                                        </td>
                                        <td>
                                            <a href ="#1" onclick="refreshCheckupImg();" style=" font-size:smaller;">看不清楚，换一张</a>
                                        </td>
                                        <td>
                                        <span id="checkmessage" style="color:red;"></span>
                                        </td>
                                    </tr>
                                </table>
                                
                                                                                               
                            </td> 
             <%--   <td>
                 <%-- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                <asp:TextBox Id="checkText" runat="server"></asp:TextBox>
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/common/createImage.aspx" />
<asp:Label ID="showCaptchaMess" runat="server" CssClass="style5"></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>--%>
                   
                   
                   <%-- <recaptcha:RecaptchaControl  ID="recaptcha"  runat="server"  PublicKey="6LebIwgAAAAAAN42IjjkktWRCA4JxjMc9BY_cELH"            
  PrivateKey="6LebIwgAAAAAALM5uMriswVYc-4P7UyCi4rkFMAF" Theme="white" ErrorMessage="验证信息有误。" Custom_translations='{ instructions_visual: "输入上面单词,不分大小写:",incorrect_try_again: "错误，重试:"}' />                   --%>
                   <%-- <script type="text/javascript">
                        var RecaptchaOptions = {
                        custom_translations: { instructions_visual: "输入上面的单词:",
                            incorrect_try_again: "错误，重试:"
                        }
                       ,

			theme : 'white',
			tabindex : 0
		};

</script><script type="text/javascript" src="http://api.recaptcha.net/challenge?k=6LebIwgAAAAAAN42IjjkktWRCA4JxjMc9BY_cELH">

</script><noscript>
		<iframe src="http://api.recaptcha.net/noscript?k=6LebIwgAAAAAAN42IjjkktWRCA4JxjMc9BY_cELH" width="500" height="300" frameborder="0">

		</iframe><br>

		</br><textarea name="recaptcha_challenge_field" rows="3" cols="40"></textarea><input name="recaptcha_response_field" value="manual_challenge" type="hidden" />
</noscript>--%>
                <%--</td>--%>
                
                

            </tr>
            <tr >
                <td class="style2">
                    &nbsp;</td>
                <td>
                    <asp:Button ID="Button1" runat="server" Text="创建用户" onclick="Button2_Click" OnClientClick="return validateCheckUp();" />
                </td>
            </tr>
        </table>   
        <%--<div>
            <input type="text" value="" id="testInputText" />
        </div>--%>
        <script src="../js/PageValidateUtil.js" type="text/javascript"></script>
        <div id="log">
		<!-- spacer -->
	</div>
               <%-- <script src="http://ajax.googleapis.com/ajax/libs/mootools/1.2.3/mootools-yui-compressed.js" type="text/javascript"></script>
       <script type="text/javascript">
           window.addEvent('domready', function() {
               var textarea = $('ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder3_TextBox2'), log = $('log');

               // We define the highlight morph we're going to
               // use when firing an event
               var highlight = new Fx.Morph(log, {
                   duration: 1500,
                   link: 'cancel',
                   transition: 'quad:out'
               });

               // Here we start adding events to textarea.
               // Note that 'focus' and 'keyup' are native events, while 'burn'
               // is a custom one we've made
               textarea.addEvents({
                   focus: function() {
                       // When focusing, if the textarea contains value "Type here", we
                       // simply clear it.
                       if (textarea.value.contains('Type here')) textarea.value = '';
                   },
                   blue: function() {
                       alert(1);
                   },
                   keyup: function() {
                       // When user keyups we check if there are any of the magic words.
                       // If yes, we fire our custom event burn with a different text for each one.
                       if (textarea.value.contains('hello')) textarea.fireEvent('burn', 'hello world!');
                       else if (textarea.value.contains('moo')) textarea.fireEvent('burn', 'mootools!');
                       else if (textarea.value.contains('pizza')) textarea.fireEvent('burn', 'Italy!');
                       else if (textarea.value.contains('burn')) textarea.fireEvent('burn', 'fireEvent');
                       // note that in case of 'delayed', we are firing the event 1 second late.
                       else if (textarea.value.contains('delayed')) textarea.fireEvent('burn', "I'm a bit late!", 1000);
                   },

                   burn: function(text) {
                       // When the textarea contains one of the magic words
                       // we reset textarea value and set the log with text
                       textarea.value = ''; log.set('html', text);

                       // then we start the highlight morphing
                       highlight.start({
                           backgroundColor: ['#fff36f', '#fff'],
                           opacity: [1, 0]
                       });
                   }
               });
           });
       </script>--%>
      <script type="text/javascript">

          //刷新验证码
          function refreshCheckupImg() {
              var checkupImg = document.getElementById("checkupImg");
              checkupImg.src = "/controls/RandomCheckupCoding.aspx?count=4&key=forregist&dd=" + Date().toString();
          }

          PageValidateUtil.initFocusValidates(["CustomerValidate"], [
                            ["CheckupCodeInput", validateCheckUp, "iougughygj", "validateErrorMsg", 2]]);
          
          //验证码
          function validateCheckUp() {
              var checkupInput = document.getElementById("CheckupCodeInput");
              var result = AjaxFunction.GetSessionValue("forregist_checkcode");
              if (result.value != null && result.value != "") {

                  if (result.value.toLowerCase() == checkupInput.value.toLowerCase()) {
                      return true;
                   }
                   else {
                       document.getElementById("checkmessage").innerHTML = '验证码不正确,重新输入.';
                       var checkupImg = document.getElementById("checkupImg");
                       checkupImg.src = "/controls/RandomCheckupCoding.aspx?count=4&key=forregist&dd=" + Date().toString();
                       return false;
                  }
                  return ;
              }
              return false;
          } //"ItemCountTextBox"
         </script>
</asp:Content>
